# 10-循环写入文件.py
i = 0
# 1、打开文件
while True:
    i+=1
    with open(f'./test/{i}test.txt',"w",encoding="utf-8") as file:
    # 2、写入内容
        file.write('过年过年过年 ，新年好！！！')
    # 3、内容更新   
        file.flush()